package com.turbo.cloud.ums.web.model.role;

import com.turbo.cloud.core.base.BaseModel;
import com.turbo.cloud.core.validated.InsertValidated;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Accessors(chain = true)
public class UmsRolePermissionRelationDo extends BaseModel {
    /**
     * 角色ID
     */
    @NotBlank(message = "角色ID不能为空", groups = {InsertValidated.class})
    private String roleId;

    /**
     * 权限ID
     */
    private String permissionId;

    /**
     * 权限ID集合
     */
    private List<String> permissionIds;
}
